import Request from '@/utils/request'

/**
 * 获取单位对部门评分情况分析结果
 * @param {Object} condition 数据查询条件 department_path
 */
export function getDeptGradeAnalysis (condition) {
  return new Request({
    url: 'sapi/analysis/deptGradeAnalysis',
    method: 'post',
    data: condition
  })
}

/**
 * 获取单位对部门评分情况分析结果
 * @param {Object} condition 数据查询条件 department_path
 */
export function getDeptGradeMonitor (condition) {
  return new Request({
    url: 'sapi/analysis/deptGradeMonitor',
    method: 'post',
    data: condition
  })
}

/**
 * 获取单位对部门整改情况分析结果
 * @param {Object} condition 数据查询条件 department_path,beginDate,endDate
 */
export function getDeptRectifyMonitor (condition) {
  return new Request({
    url: 'sapi/analysis/deptRectifyMonitor',
    method: 'post',
    data: condition
  })
}

/**
 * 获取单位对部门字段分组
 * @param {Object} condition 数据查询条件 department_path,beginDate,endDate
 */
export function getDeptGroupList (condition) {
  return new Request({
    url: 'sapi/analysis/deptGroupList',
    method: 'post',
    data: condition
  })
}

/**
 * 获取单位对部门问题统计分析
 * @param {Object} condition 数据查询条件 department_path,beginDate,endDate,total,wtfxfs,bmmc
 */
export function getDeptProblemAnalysis (condition) {
  return new Request({
    url: 'sapi/analysis/deptProblemAnalysis',
    method: 'post',
    data: condition
  })
}
